<template>
  <div class="box">
    <div class="box-login">
      <div class="box-login-content">
        <div class="box-login-content-detail">
          <div>
            账号：<input type="text">
          </div>
          <div>
            密码：<input type="password">
          </div>
        </div>
      </div>
      <div class="box-login-bottom">
        <button @click="login">登入</button>
      </div>

    </div>
  </div>
</template>

<script setup lang='ts'>
import { ref, reactive } from 'vue'
import {useRouter} from 'vue-router'

const router = useRouter()

const login=()=>{
  console.log(1);
  
  router.push({
    path:'/home'
  })
}
</script>
<style lang="less" scoped>
.box {
  width: 100%;
  height: 100%;
  // overflow: hidden;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;

  &-login {
    width: 400px;
    height: 400px;
    background-color: bisque;
    border: 1px solid saddlebrown;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;

    &-content {
      display: flex;
      align-items: center;
      justify-content: center;
    }
  }
}
</style>